// 导入经过二次封装的axios实例
import service from "@/utils/request";

// 工作日历表的渲染请求
export function GZRL(payload = {}){
    return service.get('/GZRL', { params : payload})
}
// 工作日历表添加
export function GZRL_add(payload = {}){
    return service.post('/GZRL', payload)
}
// 工作日历表修改
export function GZRL_update(payload:any = {}){
    return service.patch('/GZRL/'+payload.id, payload)
}
// 工作日历表删除
export function GZRL_delete(payload:any = {}){
    return service.delete('/GZRL/'+payload.id , payload)
}
// // 工作日历表删除多条${ids.join(",")}
// export function GZRL_deletess(payload:any = {}){
//     return service.delete("/GZRL/"+payload.id, payload)
// }

// 班次管理列表的渲染请求
export function BCGL(payload = {}){
    return service.get('/BCGL', { params : payload})
}
// 班次管理列表添加
export function BCGL_add(payload = {}){
    return service.post('/BCGL', payload)
}
// 班次管理列删除
export function BCGL_delete(payload:any = {}){
    return service.delete('/BCGL/'+payload.id , payload)
}
// 编辑班次管理列表
export function BCGL_update(payload:any = {}){
    return service.patch('/BCGL/'+payload.id, payload)
}



// 打卡方式列表的渲染请求
export function DKFS(payload = {}){
    return service.get('/DKFS', { params : payload})
}
// 打卡方式列表添加
export function DKFS_add(payload = {}){
    return service.post('/DKFS', payload)
}
// 打卡方式列表删除
export function DKFS_delete(payload:any = {}){
    return service.delete('/DKFS/'+payload.id , payload)
}
// 编辑打卡方式
export function DKFS_update(payload:any = {}){
    return service.patch('/DKFS/'+payload.id, payload)
}
// 打卡地点的渲染
export function DKDD(payload = {}){
    return service.get('/DKDD', { params : payload})
}
// 打卡地点列表添加
export function DKDD_add(payload = {}){
    return service.post('/DKDD', payload)
}
// 打卡地点列表删除
export function DKDD_delete(payload:any = {}){
    return service.delete('/DKDD/'+payload.id , payload)
}
// 打卡WiFi列表渲染
export function DKDD_WiFi(payload = {}){
    return service.get('/DKDD_WiFi', payload)
}
// 打卡WiFi列表添加
export function DKDD_addWiFi(payload = {}){
    return service.post('/DKDD_WiFi', payload)
}
// 打卡地点列表删除
export function DKDD_deleteWiFi(payload:any = {}){
    return service.delete('/DKDD_WiFi/'+payload.id , payload)
}

// 考勤分组的渲染请求
export function KQFZ(payload = {}){
    return service.get('/KQFZ', { params : payload})
}
// 考勤分组列表添加
export function KQFZ_add(payload = {}){
    return service.post('/KQFZ', payload)
}
// 考勤方式列表删除
export function KQFZ_delete(payload:any = {}){
    return service.delete('/KQFZ/'+payload.id , payload)
}
// 编辑考勤方式列表
export function KQFZ_update(payload:any = {}){
    return service.patch('/KQFZ/'+payload.id, payload)
}